{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "3f148057",
   "metadata": {},
   "source": [
    "# Matplotlib 的安装\n",
    "如果您的系统上已经安装了 Python 和 PIP，那么安装 Matplotlib 非常容易。\n",
    "\n",
    "使用以下命令安装它："
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "8685fbfa",
   "metadata": {},
   "outputs": [],
   "source": [
    "!pip install matplotlib"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "3217f9da",
   "metadata": {},
   "source": [
    "# 导入 Matplotlib\n",
    "安装 Matplotlib 后，通过添加 import module 语句将其导入到您的应用程序中："
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "ac899dae",
   "metadata": {},
   "outputs": [],
   "source": [
    "import matplotlib"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "e7209e70",
   "metadata": {},
   "source": [
    "# 检查 Matplotlib 版本\n",
    "版本字符串存储在 __version__ 属性下。"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "5e879d85",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "3.4.2\n"
     ]
    }
   ],
   "source": [
    "print(matplotlib.__version__)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.10"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
